package com.hgd.security.evp.biz.rest;

import com.hgd.security.evp.biz.biz.EvpNewsBiz;
import com.hgd.security.evp.biz.entity.EvpNews;
import com.hgd.security.evp.common.util.ObjectResultResponse;
import io.swagger.annotations.ApiParam;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.RequestMapping;

@RestController
@RequestMapping("evpNews")
public class EvpNewsController {

    @Autowired
    private EvpNewsBiz evpNewsBiz;

    @GetMapping("/instance/{id}")
    public ObjectResultResponse<EvpNews> getEvpNewsById(@PathVariable("id") @ApiParam("待查询记录ID") Integer id){
        return evpNewsBiz.getEvpNewsById(id);
    }
}